import request from "@/js/request";
import qs from "qs";

export function getShopsById(data) {
    return request({
        url: "/wxcms/getShops",
        method: "post",
        data: data,
        headers: {
            "Content-Type": "application/json;charset=UTF-8"
        }
    });
}

export function queryIsLottery(data) {
    return request({
        url: "/prize/queryLottery",
        method: "post",
        data: qs.stringify(data)
    });
}

export function addLottery(data) {
    return request({
        url: "/prize/addLottery",
        method: "post",
        data: qs.stringify(data)
    });
}

export function queryLotteryWinner(data) {
    return request({
        url: "/prize/queryLotteryWinner",
        method: "post",
        data: qs.stringify(data)
    });
}

export function addEnroll(data) {
    return request({
        url: "/prize/addEnroll",
        method: "post",
        data: qs.stringify(data)
    });
}

export function getEnroll(data) {
    return request({
        url: "/prize/getEnroll",
        method: "post",
        data: qs.stringify(data)
    });
}
